package cs7;

import java.util.HashMap;
import java.util.Map;

public class Course {

	 static 
		Map<String,String> map = new HashMap<String,String>();
		
		static{
		map.put("Tom", "CoreJava");
		map.put("John", "Oracle");
		map.put("Susan", "Oracle");
		map.put("Jerry", "JDBC");
		map.put("Jim", "Unix");
		map.put("Kevin", "JSP");
		map.put("Lucy", "JSP");
		}
		public static void main(String[] args){
			map.put("Allen", "JDBC");
			
			map.put("Lucy","CoreJava");
			
			for(Map.Entry<String, String> e:map.entrySet()){
				System.out.println(e.getKey()+":"+e.getValue());
			}
			
			System.out.println("...................");
			for(Map.Entry<String, String> e:map.entrySet()){
				if(e.getValue().equals("JSP")){
					System.out.println(e.getKey());
				}
			}
			
		}
		
		
	}


